<div class="item">
    <div class="layui-card">
        <div class="layui-card-header">
            <form class="layui-form" id="message-formUrl" action="{:url('index/Message/store')}">
                <input type="hidden" id="messagetable_id" name="messagetable_id" value="{$messagetable_id??0}" >
                <input type="hidden" id="messagetable_type" name="messagetable_type" value="{$messagetable_type??0}" >
                <div class="layui-row layui-col-space10">
                    <div class="layui-col-lg1" >
                        <img class="avatar" src="/static/index/img/avatar.jpg" alt="">
                    </div>
                    <div class="layui-col-lg10" >
                        <div class="layui-form-item">
                            <div class="layui-input-inline" style="margin-bottom:15px;" >
                                <input id="LAY-msg-name" name="name" type="text" maxlength="120" placeholder="请填写你的留言名" class="layui-input" />
                            </div>
                        </div>
                        <div class="layui-form-item layui-form-text">
                            <div class="layui-input-block">
                            <textarea placeholder="既然来了,就说几句吧" class="layui-textarea" id="LAY-msg-content"
                                      style="resize: none;"></textarea>
                                <div class="btn-box">
                                    <button class="layui-btn" type="button" id="item-btn">确定</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-card-body">
            <div class="title">
                <p><span>全部留言</span><em id="count">{$data.total}</em></p>
            </div>
            <ul class="list-item" id="LAY-msg-box">
                {volist name="data.data" id="item"}
                <li>
                    <img src="{$item.avatar}" alt="">
                    <div class="list-txt">
                        <p class="max-title"><span class="name">{$item.name}</span><span class="time">{$item.create_time|date="Y/m/d h:i",###}</span></p>
                        <p class="list-content">
                            {$item.content}
                        </p>
                    </div>
                </li>
                {/volist}
            </ul>
            {include file="common/page" }
        </div>
    </div>
</div>